//---------------------------------------------------------------------------

#ifndef vPelleteuseH
#define vPelleteuseH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include "pOperation.h"
#include <assert.h>
//---------------------------------------------------------------------------
#define asMateriel(a)   dmKiloutou->tMateriel##a->AsString
#define nMateriel(a)   dmKiloutou->tMateriel##a->AsInteger

#define nPelleteuse(a)    dmKiloutou->tPelleteuse##a->AsInteger
#define fPelleteuse(a)    dmKiloutou->tPelleteuse##a->AsFloat

//---------------------------------------------------------------------------
class CPelleteuse;
//---------------------------------------------------------------------------
bool __fastcall GerePelleteuse( TOperationSaisie nOpe );
//---------------------------------------------------------------------------
class TvSPelleteuse : public TForm
{
__published:	// Composants gérés par l'EDI
    TGroupBox *GroupBox1;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *Label3;
    TLabel *Label4;
    TBitBtn *bbOK;
    TEdit *eNom;
    TEdit *eDescription;
    TEdit *ePoidsTotal;
    TEdit *ePrix;
    TBitBtn *bbAnnuler;
    void __fastcall bbOKClick(TObject *Sender);
private:	// Déclarations utilisateur
    TOperationSaisie m_nOpe;
    CPelleteuse* m_Pelleteuse;
    void __fastcall Enregistrer( void );
    void __fastcall Modifier( void );
public:		// Déclarations utilisateur
    __fastcall TvSPelleteuse(TComponent* Owner, TOperationSaisie nOpe);
    void __fastcall Supprimer( void );
};

#endif
